package com.su.gulimall.seckill.config;

import org.springframework.amqp.core.Exchange;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SeckillMQConfig {

    /**
     * 交换机
     */
    @Bean
    public Exchange orderEventExchange()
    {
        return new TopicExchange("order-event-exchange", true, false);
    }


}
